<?php


class Sherpa_Model_Color extends WSB_Model
{

	/**
	 * @var array
	 */
	protected $_data = array(
		// sherpa_colors
		'id' => null,
		'colorName' => null,
		'rgbRed' => null,
		'rgbGreen' => null,
		'rgbBlue' => null
	);

	/**
	 * @return string
	 */
	public function getRgbHex()
	{
		return str_pad(dechex($this->getRgbRed()), 2, '0', STR_PAD_LEFT).
			str_pad(dechex($this->getRgbGreen()), 2, '0', STR_PAD_LEFT).
			str_pad(dechex($this->getRgbBlue()), 2, '0', STR_PAD_LEFT);
	}

}